home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / dcom / modems-part1 / 7547 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  2.8 KB  |  75 lines

  1. On the down side, this is my first experience hooking up a modem
  2. to a Unix box.  On the upside, I have been working with the
  3. very helpful document by Syed Hosain I found in 
  4. http://www.aha.ru/file/zyxel/mirror/zyx_sun.ps.Z, and I am on exactly
  5. the same system: an IPX running SunOS 4.1.3.  I followed
  6. the instructions to 
  7.  
  8.     # eeprom ttya-ignore-cd=false
  9.     # eeprom ttya-rts-dtr-off=true
  10.     # fastboot
  11.  
  12. but after that the attempt to echo commands to the modem, e.g.:
  13.  
  14.     % (stty 38400 ; echo "AT&FS0=1&W") > /dev/ttya
  15.  
  16. hung until I turned the modem off.  A lot of experimentation later,
  17. I found that the command "ttysoftcar" returned "y" for ttyb (not
  18. hooked up to anything) but hung for ttya even when the cable was
  19. unplugged from the modem.  When I unplugged the other end of the
  20. cable from the Sun, however, the command completed, and returned "n".
  21. I set it to "y" and plugged the modem back in and now ttysoftcar
  22. commands return, and the echo doesn't hang.
  23.  
  24. However, it doesn't appear to be working, either.  If I do
  25.  
  26.     % (stty 38400 ; echo "ATDT42246") > /dev/ttya
  27.  
  28. the TXD and RXD flash briefly on the modem, but that's all.  If I
  29. just do
  30.  
  31.     % echo "ATDT42246" > /dev/ttya
  32.  
  33. then it does dial the number, but only about half the time - the
  34. other half of the time (at random) it returns without doing anything.
  35.  
  36. I suspect some sort of synchronization/data overrun problem.  If I
  37. look at the ttya entries in the output from "eeprom", I see:
  38.  
  39.     ttya-rts-dtr-off=true
  40.     ttya-ignore-cd=false
  41.     ttya-mode=9600,8,n,1,-
  42.  
  43. Now, the 9600 there is the default, and Syed's document said
  44. nothing about changing it, but did say that the modem should be
  45. run at 38400 and that the AT&FS0=1&W command would leave it at
  46. that DTE rate.
  47.  
  48. I am able to tip to ttya with an /etc/remote entry of
  49.  
  50.     hwtest1:\
  51.             :dv=/dev/cua0:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
  52.  
  53. and typing the ATDT command causes the number to be dialled every
  54. time.  It also works if I change the br to 38400.
  55.  
  56. I've tried running the "reply" program and the results are random -
  57. the program hangs at different places and leaves the line open.
  58. Sometimes it got a slightly mangled version of what it was expecting;
  59. e.g., it was expecting "VCON" and got "V..N", where the two middle
  60. characters were 8-bit garbage.
  61.  
  62. After reboot I found that ttysoftcar for ttya had changed back to n,
  63. but this time it didn't hang even though the modem was connected.
  64.  
  65. How do I make the setting of ttysoftcar persistent?  Should I change
  66. the baud rate in the eeprom ttya-mode setting?  Should I also change
  67. the handshake in the same setting from "off" (other alternatives: hardware 
  68. rts/cts, software xon/xoff)?  Why does tip work at 38400 but echo doesn't 
  69. when stty is used to set the speed?  Is there anywhere else I should
  70. RTFM?
  71.  
  72. -- 
  73. This is news.  This is your      |  Peter Scott, NASA/JPL/Caltech
  74. brain on news.  Any questions?   |  (Peter.J.Scott@jpl.nasa.gov)
  75.